package com.qingcheng.service.order;

import com.qingcheng.entity.PageResult;
import com.qingcheng.entity.SplitResult;
import com.qingcheng.pojo.order.Order;
import com.qingcheng.pojo.order.Orders;
import com.qingcheng.pojo.user.Address;

import java.util.*;

/**
 * order业务逻辑层
 */
public interface OrderService {


    public List<Order> findAll();


    public PageResult<Order> findPage(int page, int size);


    public List<Order> findList(Map<String, Object> searchMap);


    public PageResult<Order> findPage(Map<String, Object> searchMap, int page, int size);


    public Order findById(String id);


    public void add(Order order);


    public void update(Order order);


    public void delete(String id);


    public Orders findOrderById(String id);


    public int sendBatch(List<Order> orderList);


    public void orderTimeoutLogic();


    public void merge(String order1, String order2);


    public void split(List<SplitResult> SplitResult);


    public Map<String,String> saveOrder(Order order);


    public void updateOrderStatus(String orderId,String transactionId);
}
